package com.minova.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrongji
 * @since 2019-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TzArea extends Model<TzArea> {

    private static final long serialVersionUID=1L;

    @TableId(value = "area_id", type = IdType.AUTO)
    private Long areaId;

    private String areaName;

    private Long parentId;

    private Integer level;

    List<TzArea> alist;
    
    @Override
    protected Serializable pkVal() {
        return this.areaId;
    }

}
